//
//  Video.m
//  ioshuanwu
//
//  Created by 幻音 on 15/12/28.
//  Copyright © 2015年 幻音. All rights reserved.
//

#import "Video.h"

@implementation Video

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        self.descriptionDe = value;
    }
    // 如果没有mp4_url 就将srcLink赋值给他们
    if ([key isEqualToString:@"srcLink"]) {
        self.mp4_url = value;
    }
    // 如果没有cover 就将url赋值给他们
    if ([key isEqualToString:@"newsImageInfoList"]) {
        for (NSDictionary *dic in value) {
            self.cover = dic[@"url"];
        }
    }
    if ([key isEqualToString:@"paraMap"]) {
        NSDictionary *dic = value;
        _duration = dic[@"duration"];
    }
}

@end
